package com.djakapm.swing.component;

import com.djakapm.swing.common.ContainerFactory;
import org.junit.*;
import junit.framework.JUnit4TestAdapter;

import javax.swing.*;

import static org.junit.Assert.assertTrue;

public class SpecForEditorPaneView {
    public static junit.framework.Test suite() {
        return new JUnit4TestAdapter(SpecForEditorPaneView.class);
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    @Test
    public void can_show_editorpaneview() {
        JFrame frame = ContainerFactory.newFrame("EditorPane Test");
        frame.getContentPane().add(new EditorPaneView());
        frame.setVisible(true);
        assertTrue(frame.isVisible());

    }
}